import {
	http
} from '@/common/service.js' // 局部引入

export function getTest() {
	return http.get("/PageSubArea/TrailerList.api")
}

//搜索/proclass/search
export function getProclassSearch(keyword) {
	return http.get("/proclass/search?search="+keyword)
}



//显示所有项目班
export function getProclass() {
	return http.get("/proclass")
}

//项目班详情 
export function getProclassById(id) {
	return http.get("/proclass/" + id)
}

//报名
export function apply(stuId, pId, pcId) {
	// console.log("-----",stuId, pId, pcId)
	return http.post("/student/apply", {}, {
		params: {
			"stuId": stuId,
			"pId": pId,
			"pcId": pcId
		},
		dataType: 'json'
	})

}

/**
 * id : 1
openId : demoData
bandageFlag : demoData
password : demoData
 */
export function minilogin(id,openId,bandageFlag,password) {
	return http.post("/minilogin/"+id,{},{
		params: {
			"openId": openId,
			"bandageFlag": bandageFlag,
			"password": password
		},
		dataType: 'json'
	})
}

export function getPCPictures(){
	return http.get("/getPCPictures")
}